package com.nbot.server.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.nbot.server.mapper.master.ChecklogMapper;
import com.nbot.server.domain.ChecklogDO;
import com.nbot.server.service.ChecklogService;



@Service
public class ChecklogServiceImpl implements ChecklogService {
	@Autowired
	private ChecklogMapper checklogMapper;
	
	@Override
	public ChecklogDO get(Long autoid){
		return checklogMapper.get(autoid);
	}
	
	@Override
	public List<ChecklogDO> list(Map<String, Object> map){
		return checklogMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return checklogMapper.count(map);
	}
	
	@Override
	public int save(ChecklogDO checklog){
		return checklogMapper.save(checklog);
	}
	
	@Override
	public int update(ChecklogDO checklog){
		return checklogMapper.update(checklog);
	}
	
	@Override
	public int remove(Long autoid){
		return checklogMapper.remove(autoid);
	}
	
	@Override
	public int batchRemove(Long[] autoids){
		return checklogMapper.batchRemove(autoids);
	}

	@Override
	public List<ChecklogDO> logInNmins(String tag, String checkValue, long timestamp) {

		return checklogMapper.logInNmins(tag, checkValue, timestamp);
	}
	@Override
	public List<ChecklogDO> logInNminsBydisp(String dispDesc, String checkValue, long timestamp) {

		return checklogMapper.logInNminsBydisp(dispDesc, checkValue, timestamp);
	}
	@Override
	public int insert(ChecklogDO checklog) {
		return checklogMapper.save(checklog);
	}

	@Override
	public ChecklogDO selectByPrimaryKey(Long autoid) {
		return checklogMapper.get(autoid);
	}

	@Override
	public long getMaxAutoId() {
		if(checklogMapper.getMaxAutoId()==null) {
			return 0;
		} else {
			return Long.parseLong(checklogMapper.getMaxAutoId());
		}
	}

	@Override
	public List<ChecklogDO> listDesc() {
		return checklogMapper.listDesc();
	}
	@Override
	public List<ChecklogDO> listChkVal() {
		return checklogMapper.listChkVal();
	}
	@Override
	public List<ChecklogDO> listAlmLev() {
		return checklogMapper.listAlmLev();
	}

}
